package com.wb.oldwomen;

import com.wb.fw.IConstants;

public interface Ioldwomam extends IConstants {
	////////关卡选择//////////////////
	public static int[][] sPos = new int[][]{
		{84,321},
		{195,240},
		{155,124},
		{241,40},
		{328, 132},
		{421, 40},
		{550, 40},
		{500, 152},
		{421, 258},
		{520, 347},
		{593, 230},
		{697, 326},
	};

	public static final int UNLOCK_GOLD = 200;
	public static String[] sTitle = new String[]{
		"热身运动",
		"平坦前进",
		"颠簸马路",
		"公园",
		"白菜地",
		"小树林",
		
		"铁路",
		"小路",
		"金矿",
		"森林",
		"猪圈",
		"终点火车站",
	};
	////////顺序///////////////////
	static final int Z_OBJ_BACK = 300;
	static final int Z_ROAD = 500;
	static final int Z_IGM_BTN = 1000;
	///////////////敌人动画///////////////////
	static final int ENEMY_ANIM_START = 0;
	static final int ENEMY_ANIM_RUN = 1;
	static final int ENEMY_ANIM_STOP_JUMP = 2;
	
	/////////////速度////////////////////
	public static final float ENEMY_X_SPEED = 8f;
	public static final float NORMAL_X_SPEED = 8.5f;
	public static final float JUMP_X_SPEED = 7f;
	static final int ENEMY_JUMP_Y_SPEEDR_PER_SEC = 100;//80px/s.
	static final int WOMAN_JUMP_Y_SPEEDR_PER_SEC = 200;//80px/s.
	static final int WOMAM_MAX_JUMP_HEIGHT = 200;
	
	///////////老人状态////////////////////
	static final int STATE_BEGIN = 0;
	static final int STATE_RUN = STATE_BEGIN+1;
	static final int STATE_JUMPING = STATE_RUN+1;
	static final int STATE_JUMP_UP = STATE_JUMPING+1;
//	static final int STATE_JUMP_DOWN = STATE_JUMP_UP+1;
//	static final int STATE_JUMP_DOWNED = STATE_JUMP_DOWN+1;
	static final int STATE_HURT = STATE_JUMP_UP+1;
	static final int STATE_STOP = STATE_HURT+1;
//	static final int STATE_COLLISION = STATE_STOP+1;
//	static final int STATE_RUN_DOWNED = STATE_JUMP_DOWN+1;
	
	static final int WOMAN_ANIM_BEGIN = 0;
	static final int WOMAN_ANIM_RUN = WOMAN_ANIM_BEGIN+1;
	static final int WOMAN_ANIM_JUMP_ON = WOMAN_ANIM_RUN+1;
	static final int WOMAN_ANIM_JUMP_DOWN = WOMAN_ANIM_JUMP_ON+1;
	static final int WOMAN_ANIM_JUMPING = WOMAN_ANIM_JUMP_DOWN+1;
	static final int WOMAN_ANIM_STOP = WOMAN_ANIM_JUMPING+1;
	static final int WOMAN_ANIM_BEGIN_GOU = WOMAN_ANIM_STOP + 1;
	static final int WOMAN_ANIM_RUN_GOU = WOMAN_ANIM_BEGIN_GOU+1;
	static final int WOMAN_ANIM_JUMP_ON_GOU = WOMAN_ANIM_RUN_GOU+1;
	static final int WOMAN_ANIM_JUMP_DOWN_GOU = WOMAN_ANIM_JUMP_ON_GOU+1;
	static final int WOMAN_ANIM_JUMPING_GOU = WOMAN_ANIM_JUMP_DOWN_GOU+1;
	static final int WOMAN_ANIM_STOP_GOU = WOMAN_ANIM_JUMPING_GOU+1;
	static final int WOMAN_ANIM_OFFSET = WOMAN_ANIM_BEGIN_GOU - WOMAN_ANIM_BEGIN;
	
	static final int ANIM_TYPE_WOMAN = 0;
	static final int ANIM_TYPE_GOUGOU = 1;
	
	static final int BTN_STATE_DOWN = 1;
	static final int BTN_STATE_UP = 2;
	static final int BTN_STATE_RELEASE = 0;
	////////////////关卡长度/////////////////
	//25fps,40ms.speed:8px/fps,1s=200px...1m=12000px
	public static final int[] ROAD_DISTANCE = new int[]{
		10000,
		10000,
		10000,
		10000,
		10000,
		10000,
		10000,
		10000,
		10000,
		10000,
		10000,
		10000,
	};
	public static final int WOMAN_FOCUS_X = 200;
	public static final int ENEMY_FOCUS_X = 545;
	public static final int Y_ROAD_RUN = 140;
	public static final int Y_PODI_RUN = 165;
	//////////////敌人关卡配置/////////////////
	public static final String[] ENEMY_LEVEL_CONFIG = new String[]{
		"jump,1000,80,jump,2600,120,jump,3000,160",
	};
	////物品关卡配置////////onebox,w=67,height=-15///////
	public static final String[] OBJ_LEVLE_CONFIG = new String[]{
		"tree,1200,80,house1,1500,20,xiepo,1400,0,apple,2000,120,onebox,2000,-15,gold,2600,240,twobox,2600,-15,target,3000,-36",
	};
	
	///////hits///////
	static final int HIT_GET_APPLE = 0;
	static final int HIT_BEFORE_XIAOTOU = HIT_GET_APPLE + 1;
	static final int HIT_FOOT_FIRST = HIT_BEFORE_XIAOTOU + 1;
	static final int HIT_HOLD = HIT_FOOT_FIRST + 1;
	static final int HIT_JUMP = HIT_HOLD + 1;
	static final int HIT_COUNT = HIT_JUMP + 1;
	static final int HIT_DRAWABLE[] = new int[]{
		R.drawable.hit_get_apple,
		R.drawable.hit_before_enemy,
		R.drawable.hit_foot_first,
		R.drawable.hit_hold,
		R.drawable.hit_jump,
	};
	
	/////obj////////////////////
	static final int OBJ_TYPE_HOUSE1 = 0;
	static final int OBJ_TYPE_TREE = OBJ_TYPE_HOUSE1 + 1;
	static final int OBJ_TYPE_XIEPO = OBJ_TYPE_TREE + 1;
	static final int OBJ_TYPE_ONE_BOX = OBJ_TYPE_XIEPO + 1;
	static final int OBJ_TYPE_TWO_BOX = OBJ_TYPE_ONE_BOX + 1;
	static final int OBJ_TYPE_GOLD = OBJ_TYPE_TWO_BOX + 1;
	static final int OBJ_TYPE_APPLE = OBJ_TYPE_GOLD + 1;
	static final int OBJ_TYPE_TARGET = OBJ_TYPE_APPLE + 1;
	static final int OBJ_TYPE_COUNT = OBJ_TYPE_TARGET + 1;
	
	//////////bonus////////////////
	static final int BONUS_GOLD = 1;
	static final int BONUS_APPLE = 2;
	
	///////苹果//////////////
	static final int APPLE_LEN = 7;
	static final int APPLE_POS = 3;
	static final int GOLD_LEN = 7;
	static final int GLOD_MIN_Y = Y_ROAD_RUN + 20;
	static final int GLOD_SPACE_X = 80;
	static final int GLOD_SPACE_Y = 10;
	
	
}
